package com.zros.modules.business.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lvkai
 * @since 2020-04-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_info_user_apply")
@ApiModel(value="UserApply对象", description="账户申请表")
public class UserApply extends Model<UserApply> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "申请id")
    @TableId(value = "apply_id", type = IdType.AUTO)
    private Long applyId;

    @ApiModelProperty(value = "身份证号码")
    private String cardNum;

    @ApiModelProperty(value = "身份证照片地址")
    private String cardPicUrl;

    private Long phoneNo;

    @ApiModelProperty(value = "QQ号码")
    private String qqNum;

    @ApiModelProperty(value = "微信号")
    private String weNum;

    @ApiModelProperty(value = "邮箱地址")
    private String email;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "0-未通过；1-通过")
    private Integer applyType;

    @ApiModelProperty(value = "1-商家；2-刷手")
    private Integer accountType;

    @ApiModelProperty(value = "身份证照片")
    private String img;

    @ApiModelProperty(value = "扫码人id")
    private Long parentUserId;


    @Override
    protected Serializable pkVal() {
        return this.applyId;
    }

}
